<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>注册成功</title>
    <link rel="stylesheet" href="./style/invitation.css">
    <script src="./js/link.js"></script>
</head>
<body>
    <div class="success">
        <img src="./img/invalid.png" alt="">
        <p class="title">恭喜你注册成功</p>
        <p>下载「角色地图」，学习精品课程</p>
        <div id="t-button">立即下载</div>
    </div>
    <script>
        document.getElementById('t-button').onclick = openAPP();
        function openAPP(name) {
            var iOSUrl = "xxdt://course";//填URL Schemes
            var AndroidUrl = "xxdt://course";//填URL Schemes
            new Link({
                button: document.getElementById('t-button'),// 按钮
                androidLink: AndroidUrl,// 安卓的打开链接
                androidDownloadUrl: "//www.msup.com.cn/lm/default/app",// 安卓的下载链接
                androidYyb: false,// android 是否开启应用宝下载
                iosLink: iOSUrl,// ios 打开链接
                ios9Link: '//oia.msup.com.cn/',// ios 的Universal Link
                iosDownloadUrl: "//apps.apple.com/cn/app/id1509656761", // ios 的下载链接
                iosUniversalLinkEnabled: true, // 是否开启 Universal Link
                iosYyb: false,// ios 是否开启应用宝下载
                // yybDownloadUrl: "http://a.app.qq.com/o/simple.jsp?pkgname=com.luojilab.player&ckey=CK1369314671247",// 应用宝下载链接
                autoLaunchApp: false, // 是否打开页面就唤起APP
                autoRedirectToDownloadUrl: true,// 是否自动跳转到下载页面
            })
        }
    </script>
</body>
</html>